package oo_day02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zs = new Student("张三",18,"广州","jad2302","001");
        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.study();

        Teacher ls = new Teacher("李四",20,"中山",8888.0);
        ls.eat();
        ls.sleep();
        ls.sayHi();
        ls.teach();

        Doctor ww = new Doctor("王五",30,"北京","主任医师");
        ww.eat();
        ww.sleep();
        ww.sayHi();
        ww.cut();








        /*
        zs.name = "张三";
        zs.age  = 18;
        zs.address = "广州";
        zs.className = "jsd2302";
        zs.stuId = "001";

        ls.name = "李四";
        ls.age  = 20;
        ls.address = "广州";
        ls.salary = 8888.0;

        ww.name = "王五";
        ww.age  = 30;
        ww.address = "中山";
        ww.title = "主任医师";

         */
    }
}
